<template>
  <div class="home">
    <h1>你好</h1>
    <img :src="$route.query.avatar" alt="" />
    <h1>{{ $route.query.name }}</h1>
  </div>
</template>

<script>
// @ is an alias to /src
import axios from '../utils/request'
export default {
  name: 'HomeView',
  components: {},
  created() {
    // console.log(this.$route.query.avatar)
    this.getData()
  },
  methods: {
    getData() {
      axios.get('/api/users/list').then((res) => {
        console.log('res:', res)
      })
    },
  },
}
</script>
